package com.expand04;

/**
 * Created by yangjun on 2018/3/23.
 */
public class Client {
    public static void main(String[] args) {
        Product product = ProductFactory.createProduct("Product1");
        product.doSomething();

        product = ProductFactory.createProduct("Product2");
        product.doSomething();

        product = ProductFactory.createProduct("Product2");
        product.doSomething();
    }
}
